import {userpost,userpost2} from '@/apis/ajax.js'

export function getuser() {
   return userpost('/user/user/list');
}

export function getuserdata(data){
   return userpost('/user/user/list',data);
}

export function saveuser(data){
   return userpost2('/user/user/save',data);
}

export function updateuserbyid(data){
   return userpost2('/user/user/update',data);
}

export function deleteuserbyid(data){
   return userpost2('/user/user/delete',data);
}


export function getstaff() {
    return userpost('/user/staff/list');
 }
 
 export function getstaffdata(data){
    return userpost('/user/staff/list',data);
 }
 
 export function savestaff(data){
    return userpost2('/user/staff/save',data);
 }
 
 export function updatestaffbyid(data){
    return userpost2('/user/staff/update',data);
 }
 
 export function deletestaffbyid(data){
    return userpost2('/user/staff/delete',data);
 }
 
 export function login(data){
   return userpost('/user/staffinfo/checklogin',data);
 }

 export function insertstaff(data){
   return userpost('/user/staffinfo/insert',data);
 }

 export function updatestaffpass(data){
   return userpost('/user/staffinfo/updatepass',data);
 }

 export function logininfo(data){
    return userpost2('/user/staff/info/'+data);
 }

 